using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;
using System.Data.OleDb;

namespace DataBaseManager
{
    class OleDBDataTypeProvider:IDataTypeProvider 
    {        

        public DbParameter AddParameterWithValue(DbParameterCollection parameters ,string parameterName, object value)
        {
            return ((OleDbParameterCollection)(parameters)).AddWithValue(parameterName,value);  
        }

        public DbCommand GetNewDBCommand()
        {
            return new OleDbCommand();
        }

        public DbConnection GetNewDBConnection()
        {
            return new OleDbConnection(); 
        }

        public DbParameter GetNewDBParameter()
        {
            return new OleDbParameter(); 
        }
                
    }
}
